Stored Procedure Demo: BDP
==========================

General
=======
	This project demonstrates how to use Bdp components to execute a Storec Procedure that returns multiple cursors from a MSSQL database. Before running this project it is assumed that you have created the following stored procedure on your MSSQL or MSDE server.

CREATE PROCEDURE dbo.multicursor
  @in int,
  @out int OUTPUT
as
if @in = 1
 select * from employee;
else if @in = 2
 begin
 select * from customer;
 select * from sales;
 end
else if @in = 3
 begin
 select * from employee;
 select * from customer;
 select * from sales;
 end
return 1000
GO

Also, before running this application you must modify the connection string of bdpConnection1 to match the credentials of your particular database server.

How To Use
==========

Create the Stored Procedure mentioned above
Open the project
Modify the ConnectionString to match your database server
Open the bdpCommand1 parameter collection
Use the BdpParameter Collection Editor to set a value for the @in parameter
Activate the bdpDataAdapter
Run the Application
Use the DataGrid to view the results of the executed query